package com.micromsg.basic.sys.dao;

import com.micromsg.basic.sys.model.Message;
import com.micromsg.common.core.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 消息表Mapper
 *
 * @author yangyang
 * @date 2024/04/06
 **/
public interface MessageMapper extends Mapper<Message> {

    List<Message> findMessage(@Param("senderId") String senderId, @Param("receiverId") String receiverId);

    /**
     * 批量新增消息表
     *
     * @param list
     * @return
     */
    Integer batchInsertMessage(List<Message> list);
}
